#include "OOPSMP/Utils/Geometry/Joints/JointLimits.h"
/*
 *@brief obsolete class, not used anymore
 */
BeginImplementInstanceFactory(JointLimits, Factory);
RegisterFnFactory(set_n_DoF, FACTORY_VAL_ARG(int, 0));
RegisterFnFactory(setLimits, FACTORY_PTR_ARG(const double *, 0));
EndImplementInstanceFactory(JointLimits);

OOPSMP::JointLimits::JointLimits( int n_DOF, double * lims ) {

	n_DoF = n_DOF;
	limits = new double[n_DOF];

	for ( int i = 0 ; i < n_DOF ; i++ )
		limits[i] = lims[i];

}

OOPSMP::JointLimits::~JointLimits() {
	if ( limits )
		delete [] limits;
}